﻿@model FPP.Models.Collections.UserGameRoster
<h2>
    Viewing Roster for @Model.Player.FirstName
</h2>
<div class="column span-225px prepend-10px last">
    Famous Person
</div>
<div class="column span-1">
    Points
</div>
<div class="column span-1 last">
    Actions
</div>
@foreach (var r in Model.Roster)
{ 
    <div class="column span-225px prepend-10px last" style="height: 78px;">
        <div class="span-2">
            <a href="@Url.Action("Details", "FamousPeople", new { id = r.FamousPerson.Id })">
                <img style="max-height: 75px; max-width: 75px;" src="@r.FamousPerson.WikiData().ImageUrl"
            alt="@r.FamousPerson.DisplayName" /></a>
        </div>
        <div class="span-145px last">
            <h6>
                <a href="@Url.Action("Details", "FamousPeople", new { id = r.FamousPerson.Id })">@r.FamousPerson.DisplayName</a></h6>
            DoB: @String.Format("{0:d}", r.FamousPerson.DateOfBirth) Age: @r.FamousPerson.Age<br />
            RiP: @String.Format("{0:d}", r.FamousPerson.DateOfDeath)<br />
        </div>
    </div> 

    <div class="column span-1">
        @r.FamousPerson.DeathValue()
    </div>
    <div class="column span-1 last">
        @Html.ActionLink("Remove", "RemoveFromRoster", "Roster", new { id = @r.PoolTypeId, poolId = @r.Id }, new { })
    </div>
}
